#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int n = 0; int t = 0;
	scanf("%d", &n); int arr[11];
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &arr[i]);
	}
	for (int j = 0; j < n; j++)
	{
		for (int k = 1 + j; k < n; k++)
		{
			if (arr[j] < arr[k])
			{
				t = arr[j];
				arr[j] = arr[k];
				arr[k] = t;
			}
		}
	}
	for (int m = 0; m < n; m++)
	{
		printf("%d ", arr[m]);
	}
	return 0;
}
